package ${url.entityPackage}; 

<#list columns as col>
<#if col.fieldType="Date">
import java.util.Date;
<#elseif  col.fieldType="BigDecimal">
import java.math.*;
import org.springframework.format.annotation.DateTimeFormat;
</#if>
</#list> 
import javax.validation.constraints.*;


public class ${className} extends BasicEntity{  

<#list columns as col>
	<#if col.fieldType="Date">
		@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	</#if>
		private  ${col.fieldType}	${col.fieldName}; 	 //${col.columnComments}

</#list> 
<#list columns as col>
		public ${col.fieldType} get${col.supperfiledName}(){  
			return ${col.fieldName}; 
		}
		public void set${col.supperfiledName}(${col.fieldType}  ${col.fieldName}){  
			this.${col.fieldName} = ${col.fieldName}; 
		}
		
</#list> 

@Override
public String toString() {
	return "${className}["+ 
	<#list columns as col>
	  ",${col.fieldName}=" + ${col.fieldName} + 
	</#list>
	"]";
}


}